import { Module, forwardRef } from '@nestjs/common'
import { CrudService } from './services/crud.service'
import { DynamicCrudController } from './controllers/dynamic-crud.controller'
import { MetadataModule } from '../metadata/metadata.module'
import { RbacModule } from '../rbac/rbac.module'

@Module({
  imports: [forwardRef(() => MetadataModule), RbacModule],
  providers: [CrudService],
  controllers: [DynamicCrudController],
  exports: [CrudService],
})
export class CrudModule {}
